/* @INLINE FILE popup.bloc.js =============================================================
	* Popup win functions
	* 
	* VAR
	* 
	* FUNC
	* this.openPopup - open the popup win
	*/
	
	/*DEPRICATED

	//Launch the pop up window
	this.popUp = function () {
		if(popupwin){popupwin.close()};
		popupwin=window.open( _s + "pop.html?cid="+config.chat_id+"&h="+config.host, 'fc_popwin', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width = '+(default_chat_window_width+10)+',height = '+(default_chat_window_height+35)+',left=' + (window.screen.width - (default_chat_window_width+10)) / 2
			   +  ',top=' + (window.screen.height - (default_chat_window_height+10)) / 2);
	    popupwin.focus();
	};
	
	//close pop up
	var closePopup = function(){
		if(popup){
			self.close();
			return true;
		}
		return false;
	};

	//toggle popup window
	var togglePopup = function(_mode,pos){
		if(guest&&config.require_login&&integrated){
			fc_chat.toggle_login_box((pos?pos:0));
			return true;
		}else{
			if(ww != null&& !dontClose){
				if(closePopup()){return true};
			}
	    	if(!popup){
	    		if((_mode==null&&config.popup_window_on_open)||_mode){
					fc_chat.openPopup();
					return true;
	    		}
	    	}
		}
    	return false;
	};
	*/
	
	//open pop up window
	this.openPopup = function(){
		popup_open=1;
		jQ(".fc_ob").html(fc_chat.toggle_btn(1,0));
		if(_t.m==0){
			die(0);
			set_status_bullet(0);
		}
        if(tg==1){
        	fc_chat.closeChat();
        	jQ('#fc_m1').attr({"checked":true});
        	setC(pauseCookie,'0');
            pause=0;
        }
        fc_chat.close_boxes(1);
        if(config.requre_login){
        	jQ("div.fc_t1").html(__(258));
        }
        guest=false;
	};
	
	//popup.bloc.js =============================================================@END FILE*/